package com.qf.mapper;

import com.qf.entity.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpMapper {
    Emp findEmpByEmpno(int empno);

    List<Emp> list();

    Emp loginEmpnameAndNo(@Param("empno") int empno, @Param("ename") String ename);

    int empAdd(Emp emp);

    int empUpdate(Emp emp);

    int empDelete(int empno);

    List<Emp> listByMap(Map<String, String> map);
}
